Macromedia Central Development Quick Start Guide
Table of Contents
Installing Your Application into Central
Here are the steps to installing your application into Central.
Step 1. Get a Product ID
In order to install your application into Central, you must first get a product ID. Every application installed into Central needs a valid product ID. You can get one from the Macromedia Central Product ID site:
www.macromedia.com/go/central_productid
The SDK also includes a single product ID that you can use for local development purposes.
Step 2. Create the product.xml file
You need to create the product.xml file that Central uses to install and configure the application.
For this application, you can create a simple product.xml file as follows:
- Create a new text file named product.xml.
- Open it with a text editor.
- Add the following XML code to it, replacing the appropriate fields with information from your own application:
<?xml version="1.0"?> <product name="Sample" created="4/15/2003" version="1" lifetime="" price="Free" requireVersion="1" category="Other" vendor="" vendorID="" productID="CND100-062234-167221-651442"> <author name="Author Name" info="http://www.authorwebsite.com/"/> <description>Sample application for Macromedia Central</description> <application name="Sample" src="sample.swf" width="550" height="400" lang="en" background="#FFFFFF" version="1" hasPreferences="false"> </application> </product>
Step 3. Set Up the Installation Folder
Create a new folder to contain all of the files necessary to install your application. Copy the following files into that folder:
- The application SWF file
- The product.xml file
- The installation badge (a Flash application)
You can find the installation badge in the SDK in the Utilities\InstallationBadge folder. This is what the installation badge does when you put it on your website:
- Loads the product.xml file
- Displays information about your application
- When clicked, starts the installation process into Central
Step 4. Copy the Installation Folder to a Web Server
All Central applications must be installed using a web server. During development, you can do this installation using a local web server. Copy the installation folder and its contents to a local or remote web server.
Step 5. Install the Application into Central
Using a web browser, browse to the installation folder on the web server and load the installation badge. Once it has loaded, click it to install your application into Central.
If any errors occur, confirm that product.xml contains no errors and that all the files are included in the installation folder.
Note that you can also type the URL to the product.xml file directly into Central by choosing File > Install Application from URL (see Figure 3).
Figure 3. Installing an application into Central using the URL to product.xml
Step 6. Check the Installation in Central
Open Central, if it's not already open, and select your application from the toolbar at the top. This opens your application. You should see the graphic you inserted earlier (in Step 5 on the previous page) and also see the text "Loaded" appear on the status bar (see Figure 4).
Figure 4. Sample application loaded into Central
If you do not see either of these, recheck your ActionScript code and product.xml file, and reinstall the application.